package com.wangjw.jvmDemo;

/**
 * Created by wangjw on 18/7/25.
 */
public class Singleton {

    private Singleton() {

    }

    private static class LazyHolder {

        static final Singleton INSTANCE = new Singleton();
    }

    public static Singleton getInstance() {
        return LazyHolder.INSTANCE;
    }
}
